﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using System.Configuration;

namespace SMSTester
{
    public static class svcProxies
    {
        public static void CloseServices()
        {
            _SKySMSService_Proxy.Clear();
        }

        #region Messages
        private static Hashtable _SKySMSService_Proxy = new Hashtable();
        public static svcSKySMSGateway.SKySMSService SKySMSService_Proxy() { return SKySMSService_Proxy(""); }
        public static svcSKySMSGateway.SKySMSService SKySMSService_Proxy(string svcHost)
        {
            svcSKySMSGateway.SKySMSService v =
            new svcSKySMSGateway.SKySMSService();

            v.Url = "http://" + svcHost + 
                ConfigurationSettings.AppSettings["ServiceName"].ToString();

            return v;
        }
        #endregion

    }
}
